package com.example.demo1107.demo1;

public class Singleton {
    private static Singleton singleton=new Singleton();
    private Singleton(){}
    public static Singleton getInstance(){
        return singleton;
    }
    public void show(){
        System.out.println("--------show-------");
    }
}
